<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<script type="text/javascript" src="<%= request.getContextPath() %>/javascript/jspdf.js"></script>
<script type="text/javascript" src="<%= request.getContextPath() %>/javascript/libs/sprintf.js"></script>
<script type="text/javascript" src="<%= request.getContextPath() %>/javascript/libs/base64.js"></script>
<script type="text/javascript" src="<%= request.getContextPath() %>/javascript/libs/util.js"></script>
<script type="text/javascript">
	function comprovante(musica, valor, cliente, data){
		var doc = new jsPDF();
		doc.text(20, 20, 'Comprovante de compra');
		doc.text(20, 40, 'Musica: '+musica);
		doc.text(20, 50, 'Valor: '+valor);
		doc.text(20, 60, 'Cliente '+cliente);
		doc.text(20, 70, 'Data da Compra: '+data);
		// Output as Data URI
		doc.output('datauri');
	}
	</script>
<title>Comprovante</title>
</head>
<body onload="comprovante('<%=request.getParameter("musica")%>', '<%=request.getParameter("valor")%>', '<%=request.getParameter("cliente")%>', '<%=request.getParameter("data")%>')">

</body>
</html>